package org.bluedream.core.module.printTemplate.bill;

import lombok.extern.slf4j.Slf4j;
import org.bluedream.core.module.entity.bill.stkOut.StkBack;
import org.bluedream.core.module.service.bill.stkOut.StkBackService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * @ClassName DemoController
 * @Description TODO
 * @Author Administrator
 * @Data 2022/7/6 17:05
 * @Version
 */
@Slf4j
@Controller
@RequestMapping(value = "${adminPath}/demo")
public class DemoController {
    @Resource
    private StkBackService stkBackService;
    @ModelAttribute
    public StkBack get(String id){
        return stkBackService.getById(id);
    }
}